import request from '@/utils/request'

export function login(data) {
  return request({
    url: '/vue-admin-template/user/login',
    method: 'post',
    data
  })
}

export function getInfo(token) {
  return request({
    url: '/vue-admin-template/user/info',
    method: 'get',
    params: { token }
  })
}

export function logout() {
  return request({
    url: '/vue-admin-template/user/logout',
    method: 'post'
  })
}

export function UserInfoList(data) {
  return request({
    url: '/UserInfo/UserInfoList',
    method: 'post',
    data
  })
}


// 用户登录接口
export function Login(data) {
  return request({
    url: '/LoginAndReg/AdminLogin',
    method: 'post',
    data
  })
}


// 用户删除接口
export function UserInfoDel(data) {
  return request({
    url: '/UserInfo/UserInfoDel',
    method: 'post',
    data
  })
}


// 用户禁用启用接口
export function UserInfoActivated(data) {
  return request({
    url: '/UserInfo/UserInfoActivated',
    method: 'post',
    data
  })
}

// 用户登录接口
export function Logout(data) {
  return request({
    url: '/Home/Logout',
    method: 'post',
    data
  })
}




